package com.bruce.codeFactory.Thread.designMode.ThreadWoker;

/**
 * @author luotuan
 * @Description
 * @create 2019-03-13 21:52
 **/
public class Request {
    private String name;
    private int id;

    public Request(String name, int id) {
        this.name = name;
        this.id = id;
    }

    public void execute() {
        System.out.println(Thread.currentThread().getName()+" Execute --->" + this);
    }

    @Override
    public String toString() {
        return "Request NO. " + getId() + " name is ：" + getName();
    }

    public String getName() {
        return name;
    }

    public int getId() {
        return id;
    }
}
